﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Dora.Tools.EContract.Dto
{
    /// <summary>
    /// 回调数据，调用方请求的数据结构
    /// </summary>
    public class CallBackRequestDto
    {
        /// <summary>
        /// api版本
        /// </summary>
        public string apiVersion { get; set; }
        /// <summary>
        /// 结果数据
        /// </summary>
        public CallbackResultData data { get; set; }

    }
    /// <summary>
    /// 结果数据
    /// </summary>
    public class CallbackResultData
    {
        /// <summary>
        /// 消息内容
        /// </summary>
        public string content { get; set; }
        /// <summary>
        /// 合同状态，1:已生成，2:已签署，3:已作废，4:签署（用于多人签署），5:作废（用于多人签署）
        /// </summary>
        public int state { get; set; }
        /// <summary>
        /// 相应的合同编号
        /// </summary>
        public string contractNumber { get; set; }
        /// <summary>
        /// 签署人证件
        /// </summary>
        public string signatoryIDNumber { get; set; }
        /// <summary>
        /// 签署人手机
        /// </summary>
        public string signatoryPhone { get; set; }
        /// <summary>
        /// 签名字段
        /// </summary>
        public string sign { get; set; }
        /// <summary>
        /// 相应的链接
        /// </summary>
        public CallbackResultUrl url { get; set; }
    }

    /// <summary>
    /// 相应的链接
    /// </summary>
    public class CallbackResultUrl
    {
        /// <summary>
        /// 合同详情链接
        /// </summary>
        public string signingURL { get; set; }
        /// <summary>
        /// 二维码链接
        /// </summary>
        public string QRCodeURL { get; set; }
        /// <summary>
        /// 合同文件链接
        /// </summary>
        public string fileURL { get; set; }
    }
}
